/**
 * 
 */
package edu.umd.clip.lm.factors;

/**
 * @author Denis Filimonov <den@cs.umd.edu>
 *
 */
public class DictionaryIterator {
	private final Dictionary dict;
	private int nextItem;
	//private boolean countSpecial;

	protected DictionaryIterator(Dictionary dict, boolean countSpecial) {
		this.dict = dict;
		// TODO extend this to allow other special items
		this.nextItem = countSpecial ? 0 : Dictionary.FIRST_NORMAL_VALUE;
		//this.countSpecial = countSpecial;
	}
	
	public boolean hasNext() {
		return nextItem < dict.size();
	}
	
	public int next() {
		return nextItem++;
	}
}
